package com.zishi.mapper;

import com.zishi.model.pojo.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-05-05 08:53:41
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 修改文章点赞数
     */
    boolean updateLikeNum(@Param("articleId") Integer articleId, @Param("liked") Integer liked);


    /**
     * 修改文章收藏数
     */
    boolean updateCollectNum(@Param("articleId") Integer articleId, @Param("collected") Integer collected);
}
